package com.situ.day8homework3;

import java.util.Scanner;

public class Zheng extends Square implements IShape {
	public static void main(String[] args) {
		Zheng zheng = new Zheng();
		System.out.println("输入正方形边的长度");
		Scanner scanner = new Scanner(System.in);
		zheng.setA(scanner.nextDouble());
		zheng.area();//调用方法
		System.out.println(zheng.area());
//		while(true){
//			
//		}
	}
}
